/**
 * 
 */
package cn.edu.bjtu.services.impl;


import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.bjtu.dao.OperationDbDao;
import cn.edu.bjtu.pojo.AuthorEntity;
import cn.edu.bjtu.pojo.CityStateInfo;
import cn.edu.bjtu.pojo.TeamInfo;
import cn.edu.bjtu.services.OperationDbService;



/** 
* @ClassName: MysqlOperationService 
* @Description: TODO Mysql database operation ---- service layer,
* @author LiYao 
* @date 2017/8/24 PM 9:56:58 
*  
*/
@Service("mysqlOperationService")
public class MysqlOperationService  implements OperationDbService {

    @Autowired
    @Resource(name = "mysql")  
    OperationDbDao mysqlOperationDao;

	@Override
	public String login(AuthorEntity user) {
		return mysqlOperationDao.login(user);
	}

	@Override
	public String getUserRole(AuthorEntity user) {
		// TODO Auto-generated method stub
		return mysqlOperationDao.getUserRole(user);
	}

	@Override
	public List<TeamInfo> getTeamUser() {
		// TODO Auto-generated method stub
		return mysqlOperationDao.getTeamUser();
	}

	@Override
	public List<CityStateInfo> getCityStateInfo() {
		// TODO Auto-generated method stub
		return mysqlOperationDao.getCityStateInfo();
	}

	@Override
	public boolean deleteCityStateInfo(String id) {
		return mysqlOperationDao.deleteCityStateInfo(id);
	}

	@Override
	public boolean addCityStateInfo(CityStateInfo cityStateInfo) {
		return mysqlOperationDao.addCityStateInfo(cityStateInfo);
	}

	@Override
	public boolean updateStateInfo(CityStateInfo cityStateInfo) {
		return mysqlOperationDao.updateStateInfo(cityStateInfo);
	}
    
    
    
}
